<!DOCTYPE html>
<html>
<head>
    <title>almond: Text Test</title>
    <script type="text/javascript" src="../doh/runner.js"></script>
    <script type="text/javascript" src="../doh/_browserRunner.js"></script>
    <script type="text/javascript" src="text-built.js"></script>
    <script type="text/javascript">
    require(
        ["require", "widget"],
        function(require, widget) {
            doh.register(
                "text",
                [
                    function text(t){
                        t.is('<div data-type="widget"><h1>This is a widget!</h1><p>I am in a widget</p></div>', widget.template);
                        t.is('subwidget', widget.subWidgetName);
                        t.is('<div data-type="subwidget"><h1>This is a subwidget</h1></div>', widget.subWidgetTemplate);
                        t.is('<span>This! is template2</span>', widget.subWidgetTemplate2);
                    }
                ]
            );
            doh.run();
        }
    );
    </script>
</head>
<body>
    <h1>almond: Text Test</h1>
    <p>Check console for messages</p>
</body>
</html>
